package com.qf.main.login.service;

import com.github.pagehelper.PageInfo;
import com.qf.main.login.common.qo.SysUserQo;
import com.qf.main.login.common.vo.SysUserVo;
import com.qf.main.login.entity.SysUser;
import com.qf.main.login.realm.UserToken;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author chengqiang
 * @Create 2024-01-18-21:15
 * @Description:
 */
public interface SysUserService {

    SysUser getSysUserInfo(String username);
    SysUser getSysUserInfoByPhone(String phone);

    Integer saveSysUser(SysUserQo sysUserQo);

    Integer modifySysUserPassword(SysUserQo sysUserQo, String oldPassword, String ConfirmPassword);
    Integer modifySysUser(SysUserQo sysUserQo);


    SysUserVo login(UserToken userToken);

    PageInfo<SysUserVo> getSysUserList(String username,String phone,Integer pageNum,Integer pageSize);
    PageInfo<SysUserVo> listUser(String username,String phone, Integer pageNum, Integer pageSize);

    Integer removeUser(Integer id);

    Integer recoverUser(Integer id);

    String uploadImage(MultipartFile multipartFile,String path);

}
